<?
    include "../common.php" ;
    $sql = "SELECT * FROM users WHERE id = {$_POST['uid']}" ;
    $res = mysqli_query($link,$sql) ;
    $arr = [] ;
    if( $one = mysqli_fetch_assoc($res) ){
        $arr = $one ; 
    }
    echo json_encode($arr);
?>